package com.pvdnc.systemdebugger.userauth;

import com.pvdnc.systemdebugger.compacter.utils.IOUtils;

public class ProcessUtils {
    public static String getCallingInfo(int pid){
        String procPath="/proc/"+String.valueOf(pid)+"/cmdline";
        try {
            byte[] data= IOUtils.File.readData(procPath);
            return new String(data)+"("+String.valueOf(pid)+")";
        } catch (Exception e) {
            e.printStackTrace();
            return String.valueOf(pid)+"(EACCESS)";
        }
    }
}
